﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Globalization;

namespace Gammar.Price.Utility
{
    public static class StringUtility
    {
        public static string Trim(string originalString, int length)
        {
            if (string.IsNullOrEmpty(originalString) || originalString.Length < length || originalString.Length < 11) return originalString;

            return string.Format(CultureInfo.InvariantCulture, "{0}...", originalString.Substring(0, length - 8));
        }
    }
}
